//
//  common.swift
//  MPSinaWeibo
//
//  Created by DaVinci on 16/4/9.
//  Copyright © 2016年 DaVinci. All rights reserved.
//

import UIKit

let client_id = "2769161420"

let client_secret = "591d2111b4e56b588ffe6903e6d2577f"

let redirect_uri = "https://www.baidu.com"


let ScreenHeight = UIScreen.mainScreen().bounds.height
let ScreenWidth = UIScreen.mainScreen().bounds.width

let notificationName = "MPSwitchRootViewController"

let AppErrorTip = "世界上最遥远的距离是没有网络"

func randomColor() ->UIColor {

    let r = CGFloat(random() % 256) / 255.0
    let g = CGFloat(random() % 256) / 255.0
    let b = CGFloat(random() % 256) / 255.0
    
    return UIColor(red: r, green: g, blue: b, alpha: 1.0)

}